package com.TT.service;

import com.TT.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BooksService {


    //增加一本书
    int addBooks(Books books);

    //删除一本书
    int deleteBooksById(int id);

    //更新一本书
    int updateBooks(Books books);


    //查询一本书
    Books queryBooksById(int id);


    //查询全部的书
    List<Books> queryAllBooks();


    Books queryBooksByName(String bookName);
}
